import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'

// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI);
import './assets/css/main.css'

// 导入 axios
import http from 'axios'

import { Button, Select, Radio } from 'element-ui';
Vue.component(Button.name, Button);
Vue.component(Radio.name, Radio);
Vue.component(Select.name, Select);

import { Container, Aside, Header, Main } from 'element-ui';
Vue.use(Container);
Vue.use(Aside);
Vue.use(Header);
Vue.use(Main);

import { Menu, MenuItem, MenuItemGroup, Submenu } from 'element-ui';
Vue.use(Menu);
Vue.use(MenuItem);
Vue.use(MenuItemGroup);
Vue.use(Submenu);

import { Dropdown, DropdownItem, DropdownMenu } from 'element-ui';
Vue.use(Dropdown);
Vue.use(DropdownItem);
Vue.use(DropdownMenu);

import { Row, Col, Card } from 'element-ui';
Vue.use(Row);
Vue.use(Col);
Vue.use(Card);

import { Table, TableColumn } from 'element-ui';
Vue.use(Table);
Vue.use(TableColumn);

import { Tag } from 'element-ui';
Vue.use(Tag);
import { Breadcrumb,BreadcrumbItem } from 'element-ui';
Vue.use(Breadcrumb);
Vue.use(BreadcrumbItem);

Vue.config.productionTip = false

Vue.prototype.$http = http; // axios

// mockjs
if (process.env.NODE_ENV==='development') require('@/api/mock')

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')